#include<stdio.h>
#include<time.h>
int AddToVal(int from ,int to){
	int result = 0;
	while(from<= to){
		result+= from;
		from++;
	}
	return result;
}
void Print(int sum){
	time_t timestamp = time(NULL);
	printf("time:%d sum:%ld\n",sum,timestamp);
}
int main(){
	int sum = AddToVal(1,100);
	Print(sum);
	return 0; 
}
